<div id="show-detail">
<p><?php echo $html->link("Trang Chủ »", "/recipes"); ?> <?php echo $html->link("Món Ăn »", "/recipes/show_all"); ?> <?php echo $html->link($recipe["Category"]["name"]." »", "/recipes/show_all#".$recipe["Category"]["permalink"]); ?> <?php echo $teefan->displayContent($recipe["Recipe"]["name"]); ?> »</p>
<h1><?php echo $recipe["Recipe"]["name"]; ?></h1>
<div style="float:right;">
<a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php">Chia sẻ</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script> | 
<?php
  if (empty($favorite))
  {
    echo $html->link("Thích món này", "/recipes/add_to_favorite/".$recipe["Recipe"]["id"]);
  }
  else
  {
    echo $html->link("Không thích món này nữa", "/recipes/remove_from_favorite/".$recipe["Recipe"]["id"]);
  }
?> <?php if (!empty($favorite_count) && $favorite_count > 0) { ?><span>(<?php echo $favorite_count; ?> người thích)</span><?php } ?> | <?php echo $html->link("Sửa công thức", array("controller" => "recipes", "action" => "edit/".$recipe_permalink)); ?>
</div>

<fieldset style="width:95%;">
<legend>Thông tin</legend>
<?php if (!empty($recipe["Recipe"]["image_file_name"])) { ?>
  <a href="<?php echo $upload->url($recipe["Recipe"], "Recipe.image", "original"); ?>" rel="lightbox" title="<?php echo $teefan->displayContent($recipe["Recipe"]["name"]); ?>" alt="<?php echo $teefan->displayContent($recipe["Recipe"]["name"]); ?>"><?php echo $upload->image($recipe["Recipe"], "Recipe.image", "thumb") ?></a>
  <br /><span style="font-size:10px;color:#999999;">(hình ảnh chỉ mang tính chất tham khảo)</span>
<?php } ?>
<h2>I. NGUYÊN LIỆU</h2>
<p><?php echo $teefan->displayContent($recipe["Recipe"]["ingredients"]); ?></p>
<h2>II. CÁCH THỰC HIỆN</h2>
<ol>
  <li><strong>Chuẩn bị</strong>
    <p><?php echo $teefan->displayContent($recipe["Recipe"]["preparation"]); ?></p>
  </li>
  <li><strong>Cách chế biến</strong>
    <p><?php echo $teefan->displayContent($recipe["Recipe"]["directions"]); ?></p>
  </li>
  <li><strong>Trình bày / Cách dùng</strong>
    <p><?php echo $teefan->displayContent($recipe["Recipe"]["serve"]); ?></p>
  </li>
</ol>
</fieldset>
</div>

<?php echo $this->element("chat_form", array("recipe_permalink" => $recipe_permalink, "comments" => $comments)); ?>